package com.itheima.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.itheima.dao.StudentDAO;
import com.itheima.po.Student;
import com.itheima.service.StudentService;

@Service
@Transactional
public class StudentServiceImpl implements StudentService {
	
	@Autowired
	private StudentDAO studentDAO;

	@Override
	public boolean login(Student student) {
		boolean isTem = false;
		Student studentTem = studentDAO.getByNamdAndPasswd(student);
		if(null != studentTem){
			isTem = true;
		}
		return isTem;
	}

}
